package com.wlsk.license.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class ChannelOrderDetail {

    @ApiModelProperty(value = "经营许可证号")
    private String licenseNo;

    @ApiModelProperty(value = "包车牌线路信息")
    private PlateLine plateLine;

    @ApiModelProperty(value = "包车牌司机信息")
    private List<PlateDriver> plateDrivers;

    @ApiModelProperty(value = "包车牌车辆信息")
    private PlateVehicle plateVehicle;

    @Data
    @ApiModel("包车牌线路信息")
    public static class PlateLine {

        @ApiModelProperty(value = "用车人/单位")
        private String company;

        @ApiModelProperty(value = "乘客人数")
        private Integer perno;

        @ApiModelProperty(value = "使用开始时间,格式：yyyy-MM-dd HH:mm:ss")
        private String limitStart;

        @ApiModelProperty(value = "使用结束时间，格式：yyyy-MM-dd HH:mm:ss")
        private String limitEnd;

        @ApiModelProperty(value = "用车事由(1、客运站为乘客组织的包车 2、旅游企业组织的旅游包车 3、单位为单位人员组织包车 4、多个个人相约分担费用包车 5、不收取乘客任何费用的包车)")
        private String matter;

        @ApiModelProperty(value = "包车类别(1、普通包车 2、旅游包车)")
        private String lictype;

        @ApiModelProperty(value = "包车牌类型(00030008:省际包车客运;00030006:县际包车客运;00030005:县内包车客运;00030009:主城区包车;00030010:通勤车)")
        private String licplatype;

        @ApiModelProperty(value = "起点所属省")
        private String startProvince;

        @ApiModelProperty(value = "起点所属市")
        private String startCity;

        @ApiModelProperty(value = "起点所属县")
        private String startCounty;

        @ApiModelProperty(value = "终点所属省")
        private String endProvince;

        @ApiModelProperty(value = "终点所属市")
        private String endCity;

        @ApiModelProperty(value = "终点所属县")
        private String endCounty;

        @ApiModelProperty(value = "终点详细地址")
        private String endPlace;

        @ApiModelProperty(value = "起点详细地址")
        private String startPlace;

        @ApiModelProperty(value = "途径地编码")
        private String wayLineCode;

        @ApiModelProperty(value = "途径地名称")
        private String wayLine;

        @ApiModelProperty(value = "主要停靠地")
        private String wayLineAddress;

        @ApiModelProperty(value = "是否往返载客, true = 是, false = 否")
        private Integer isReturn;

        @ApiModelProperty(value = "总里程")
        private Integer totalMileage;

        @ApiModelProperty(value = "高速里程")
        private Integer highMileage;

        @ApiModelProperty(value = "审核省")
        private String auditProvince;

        @ApiModelProperty(value = "包车类别(1、普通包车 2、旅游包车)")
        private String auditCity;

        @ApiModelProperty(value = "审核县")
        private String auditCounty;
    }

    @Data
    @ApiModel(value = "包车牌司机信息")
    public static class PlateDriver {

        @ApiModelProperty(value = "司机姓名")
        private String driverName;

        @ApiModelProperty(value = "从业资格证号")
        private String cardNo;
    }

    @Data
    @ApiModel(value = "包车牌车辆信息")
    public static class PlateVehicle {

        @ApiModelProperty(value = "车牌号")
        private String licensePlate;

        @ApiModelProperty(value = "安检人员")
        private String secupers;
    }
}
